package cn.com.byte1024.mapper;

import cn.com.byte1024.entity.RegisterLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RegisterLogMapper {

    List<RegisterLog> selectRegisterLogByPhone(@Param(value="phone") String phone);

    int saveRegisterCode(RegisterLog log);

    List<RegisterLog> selectRegisterLogByCode(@Param(value="phone") String phone, @Param(value="code") String code);

    int updateRegister(RegisterLog log);
    
    int deleteByPrimaryKey(String registerId);

    int insert(RegisterLog record);

    int insertSelective(RegisterLog record);

    RegisterLog selectByPrimaryKey(String registerId);

    int updateByPrimaryKeySelective(RegisterLog record);

    int updateByPrimaryKey(RegisterLog record);
}